let defaultState={
    artists:[]
}

const reducer =(state=defaultState,action)=>{
    switch(action.type){
        case 'CHANGE_ARTISTS':
            return {
                ...state,
                artists:action.data
            }
        break;
    }  
    return state
}

export default reducer